home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / man / lib.fmt / c / fsync.man < prev    next >
Encoding:
Text File  |  1989-07-12  |  1.2 KB  |  67 lines

  1.  
  2.  
  3.  
  4. FSYNC                 C Library Procedures                  FSYNC
  5.  
  6.  
  7.  
  8. NNAAMMEE
  9.      fsync - synchronize a file's in-core state with that on disk
  10.  
  11. SSYYNNOOPPSSIISS
  12.      ffssyynncc((ffdd))
  13.      iinntt ffdd;;
  14.  
  15. DDEESSCCRRIIPPTTIIOONN
  16.      _F_s_y_n_c causes all modified data and attributes of _f_d to be
  17.      moved to a permanent storage device.  This normally results
  18.      in all in-core modified copies of buffers for the associated
  19.      file to be written to a disk.
  20.  
  21.      _F_s_y_n_c should be used by programs that require a file to be
  22.      in a known state, for example, in building a simple transac-
  23.      tion facility.
  24.  
  25. RREETTUURRNN VVAALLUUEE
  26.      A 0 value is returned on success.  A -1 value indicates an
  27.      error.
  28.  
  29. EERRRROORRSS
  30.      The _f_s_y_n_c fails if:
  31.  
  32.      [EBADF]        _F_d is not a valid descriptor.
  33.  
  34.      [EINVAL]       _F_d refers to a socket, not to a file.
  35.  
  36.      [EIO]          An I/O error occurred while reading from or
  37.                     writing to the file system.
  38.  
  39. SSEEEE AALLSSOO
  40.      sync(2), sync(8), update(8)
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63. Sprite v1.0               May 22, 1986                          1
  64.  
  65.  
  66.  
  67.